using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.BackGround.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.BackGround.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class BackgroundQueryUserController : ControllerBase
{
    private readonly IBackgroundUserQuerySass _backgroundUserQuery;

    public BackgroundQueryUserController(IBackgroundUserQuerySass backgroundUserQuery)
    {
        _backgroundUserQuery = backgroundUserQuery;
    }

    [HttpGet]
    public JRequest QueryUser(int page) => _backgroundUserQuery.QueryBackgroundUser(page, 15);
}